package com.ysq.common;

/**
 * ClassName: BaseContext
 * Package: com.ysq.common
 * Description:
 *
 * @Author YSQ
 * @Create 2023/1/3 - 10:25
 */
public class BaseContext {
    private static ThreadLocal<Long> threadLocal=new ThreadLocal<>();

    public static void setCurrentId(Long id){
        threadLocal.set(id);
    }

    public static Long getCurrentId(){
        return threadLocal.get();
    }
}
